package com.njym.service;

import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.IService;
import com.njym.entity.PlatformBusinessRec;

import java.util.Date;
import java.util.List;

/**
 * Created with IDEA
 * author:张善兵
 * Date:2018/8/23
 * Time:下午2:12
 */

public interface PlatformBusinessRecService extends IService<PlatformBusinessRec> {
	List<PlatformBusinessRec> getPlatformBusinessAllStatistical(String orgId, String modeId, String cardNo, String terminalId, String outTradeNo, Date start, Date end);

	PlatformBusinessRec getAbnormalStatistics(String orgId, String modeId, String cardNo, String terminalId, String outTradeNo, Date start, Date end);

	/**
	 * method: getPlatformBusinessRecByOutTradeNo
	 *
	 * @Description: 根据系统订单号查询记录
	 * @param: [outTradeNo]
	 * @return: com.njym.entity.PlatformBusinessRec
	 * @author: yh
	 * @date: 2018/8/29 14:34
	 */
	PlatformBusinessRec getPlatformBusinessRecByOutTradeNo(String outTradeNo);

	/**
	 * 根据交易单号查询
	 *
	 * @param outTradeNo
	 * @return
	 */
	List<PlatformBusinessRec> getPlatformByOutTradeNo(String outTradeNo);

	/**
	 * @param
	 * @return
	 * @date:2018/8/31
	 * @time:上午11:13
	 * @author:zhangshanbing
	 * @description:查询交易明细
	 */
	Page<PlatformBusinessRec> queryPlatformBusinessRecDetail(
		Page page,
		String orgId,
		Integer recType,
		Integer abnormalFlag,
		String channelId,
		String channelName,
		String modeName,
		String modeId,
		String tradeStatus,
		String cardNo,
		String terminalId,
		String tradeNo,
		String outTradeNo,
		Date start,
		Date end);

	/**
	 * @param
	 * @return
	 * @date:2019/2/27
	 * @time:xia午11:13
	 * @author:zhy
	 * @description:查询交易明细
	 */
	List<PlatformBusinessRec> downPlatformBusinessRecDetail(
		String orgId,
		Integer recType,
		Integer abnormalFlag,
		String channelId,
		String channelName,
		String modeName,
		String modeId,
		String tradeStatus,
		String cardNo,
		String terminalId,
		String tradeNo,
		String outTradeNo,
		Date start,
		Date end);

	List<PlatformBusinessRec> getPlatformByOutTradeNos(String outTradeNo);
}


